Einhugur Word Plugin for Xojo

Container.AppendParagraph Method

Appends paragraph at back of the container, creating one run for the image data passed in with this method. (This variation of the AppendParagraph is to embed images).

AppendParagraph(
   value as String,
   mediaType as EinhugurWord.PictureTypes,
   originalFileName as String,
   width as Integer,
   height as Integer) as EinhugurWord.Paragraph

Parameters

value
Value to carry the raw image data.
mediaType
Picture type.

Nil will be returned if passing unknown here.
originalFileName
File name of the original file. It is not mandatory to include the original name, but if you do not then you still need to fill out this field with some name.
width
Width of the image.
height
Height of the image.

Returns

EinhugurWord.Paragraph
Handle to the new paragraph or nil.

Remarks

You can use the Einhugur Graphics formats plugin to stream Xojo picture Object correctly into the string value of this method.

See Also

Container Class